import {
  Button as button,
  Table as table,
  Icon as icon,
  Area as area,
  Fliqo as fliqo,
} from "@leisure-lib/ui";
import * as directives from "@leisure-lib/directives";
import { App, Component } from "vue";

const PREFIX = `adv`;
const comps: Component = { button, table, icon, area, fliqo };
// const directives = { copy, ripple };

export default {
  install: (app: App) => {
    Object.entries(comps).forEach(([key, comp]) => {
      app.component(`${PREFIX}-${key}`, comp);
    });
    Object.entries(directives).forEach(([key, dir]) => {
      app.directive(key, dir);
    });
  },
};
